package com.cleaningcloud.common.security.handler;

import com.cleaningcloud.common.core.utils.poi.ExcelHandlerAdapter;
import com.cleaningcloud.common.security.utils.DictUtils;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Workbook;

public class DictHandler implements ExcelHandlerAdapter {

    @Override
    public Object format(Object value, String[] args, Cell cell, Workbook wb) {
        return DictUtils.getDictLabelByTypeAndValue(String.valueOf(value),args[0],String.valueOf(value) );
    }
}
